package com.hjq.mapper;

import com.hjq.pojo.Student;
import com.hjq.pojo.queryparam.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<Student> findByPage(StudentQueryParam studentQueryParam);

    void insert(Student student);

    Student findById(Integer id);

    void update(Student student);

    void delete(List<Integer> ids);

    void handleViolation(Integer id, Integer score, LocalDateTime updateTime);
    @MapKey("name")
    List<Map<String, Object>> studentDegreeData();

}
